# $Id$
# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Balló György <ballogyor+arch@gmail.com>

pkgname=libsignon-glib
pkgver=1.14
pkgrel=2
pkgdesc='GLib-based client library for applications handling account authentication through the Online Accounts Single Sign-On service'
arch=(i686 x86_64)
url='https://gitlab.com/accounts-sso/libsignon-glib'
license=(LGPL2.1)
depends=(signond)
makedepends=(python-gobject gtk-doc gobject-introspection)
source=("https://gitlab.com/accounts-sso/$pkgname/repository/archive.tar.gz?ref=VERSION_$pkgver")
md5sums=('bab7b59fa0b2dc1a5bd7489a22286b76')

build() {
  cd $pkgname-VERSION_$pkgver-*

  ./autogen.sh
  ./configure \
    --prefix='/usr' \
    --localstatedir='/var' \
    --sysconfdir='/etc'
  make -j1
}

package() {
  cd $pkgname-VERSION_$pkgver-*

  make DESTDIR="$pkgdir" install
}
